package com.lichuang.fruitvarietysm.goods.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.lichuang.fruitvarietysm.goods.entity.GoodsSkuAttr;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
public class EvaluateAndAppend {

    @ApiModelProperty(value = "评价表id")
    @TableId(value = "evaluate_id", type = IdType.AUTO)
    private Integer evaluateId;

    @ApiModelProperty(value = "商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "订单号")
    private Long orderNo;

    @ApiModelProperty(value = "商品评分值，最高5分最低1分")
    @TableField("scoreValue")
    private Integer scoreValue;

    @ApiModelProperty(value = "商品评价的文字")
    private String goodsEvaluate;

    @ApiModelProperty(value = "商品评价的图片")
    @TableField("goods_evaluateImg")
    private String goodsEvaluateimg;

    @ApiModelProperty(value = "是否匿名。0:为不匿名，1：为匿名")
    @TableField("isAnonymity")
    private Integer isAnonymity;

    @ApiModelProperty(value = "物流服务的值，最高为5颗星，最低为1颗")
    @TableField("logisticsValue")
    private Integer logisticsValue;

    @ApiModelProperty(value = "服务态度的值，最高5颗星，最低1颗星")
    @TableField("serviceValue")
    private Integer serviceValue;

    @ApiModelProperty(value = "创建本商品评价的时间")
    @TableField("createTime")
    private LocalDate createTime;

    @ApiModelProperty(value = "追加评论的id")
    @TableId(value = "append_id", type = IdType.AUTO)
    private Integer appendId;

    @ApiModelProperty(value = "追加评论的内容")
    private String appendValue;

    @ApiModelProperty(value = "追加评论的图片")
    private String appendImg;

    @ApiModelProperty(value = "追加评论的时间")
    @TableField("createTime")
    private LocalDate appendCreateTime;


    @ApiModelProperty(value = "用来存储sku的键")
    @TableField(exist = false)
    private List<GoodsSkuAttr> skuKey;

    @ApiModelProperty(value = "用来存储sku的值")
    @TableField(exist = false)
    private List<GoodsSkuAttr> skuAttrs;

    @ApiModelProperty(value = "显示评价，用户名字")
    @TableField(exist = false)
    private String userName;

}
